<script type="text/javascript">
var allowed_chars = '<%= get_allowed_chars(1, 0)%>';
var must_have_groups = new Array (
    '<%= get_allowed_chars(1, 1)%>',
    '<%= get_allowed_chars(1, 2)%>',
    '<%= get_allowed_chars(1, 3)%>',
    '<%= get_allowed_chars(1, 4)%>'
 );
var b = "";
for (var i = 0; i < must_have_groups[3].length; i++){
    b += "\\" + must_have_groups[3].charAt(i);
}
must_have_groups[3] = b;
//b = "";
//for (i = 0; i < allowed_chars.length; i++){
//    b += "\\" + allowed_chars.charAt(i);
//}
//allowed_chars = b;
var pass_doesnt_match_msg = '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_18") %>';
var desc = new Array (
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_41") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_42") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_43") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_44") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_45") %>'
);
var err_msgs = new Array (
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_40") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_47") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_46") %>',
    '<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_51") %>'
);
</script>
<style type="text/css">
    .simplemodal-container {
        border: black 2px solid;
        line-height: normal;
    }
    #ch_pw_1, #ch_pw_2 {
        border: 1px grey inset;
        padding: 1px;
        height: 17px;
    }
    #pw_ch_button {
        border: 1px grey outset;
        padding: 1px;
        width: 70px;
    }
    #hide_pw {
        margin-right: 5px;
        position: relative;
        top: 1px;
    }
    .simplemodal-container a {
        color: #333;
    }
</style>
<div class="ch_pw" id="ch_pw_link" style="display: none;"></div>
<div id="ch_pw-modal-content">
    <div class="ch_pw_main">
        <div class="ch_pw_header"><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_21") %></div>
        <table class="ch_pw_t">
            <tr>
                <th>
                    <%= fc_value_string(Session("ses_i_language"), "var_lost_pw_22") %>
                </th>
                <td>
                    <input id="ch_pw_1" type="password" style="width: 260px;" onkeyup="pwdStrength(this.value);" />
                </td>
                <td rowspan="3" style="vertical-align: top; padding-left: 10px;">
                    <input id="hide_pw" type="checkbox" onclick="hide_pw(this.checked);" checked />
                </td>
                <td rowspan="3" class="ch_pw_r_p">
                    <div style="padding-top: 0px; margin-bottom: 10px;">
                        <%= fc_value_string(Session("ses_i_language"), "var_lost_pw_23") %>
                    </div>
                    <div style="font-size: 10px;">
                        <%= fc_value_string(Session("ses_i_language"), "var_lost_pw_24") %>
                    </div>
                    <div style="padding-top: 10px; color: black; text-align: left;">
                        <input id="pw_ch_button" type="button" value="<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_29") %>" onclick="send();" style="" />
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    <%= fc_value_string(Session("ses_i_language"), "var_lost_pw_26") %>
                </th>
                <td>
                    <input id="ch_pw_2" type="password" style="width: 260px;" />
                </td>
            </tr>
            <tr>
                <th>
                    <%= fc_value_string(Session("ses_i_language"), "var_lost_pw_27") %>
                </th>
                <td style="padding-left: 30px;">
                    <div id="password_strengh" style="padding-top: 5px; width: 210px; height: 20px; text-align: center; font-size: 90%; font-weight: bold; vertical-align: middle; color: white;"></div>
                </td>
            </tr>
        </table>
    </div>
    <div class="ch_pw_bottom">
        <div style="float: left; font-size: 13px; font-weight: bold; padding-top: 15px; padding-left: 40px;">
            Password Policy
        </div>
        <div style="text-align: right; font-size: 10px; padding-top: 15px; padding-right: 20px; cursor: pointer;" onclick="show();">
            Open/Close
        </div>
    </div>
    <div class="ch_pw_bottom2" id="ch_pw_bottom2" style="display: none;">
        <ul style="margin: 0px; padding-top: 12px; padding-left: 60px; font-size: 11px;">
            <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_32") %></li>
            <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_33") %></li>
            <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_34") %>
                <ol>
                    <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_35") %>&nbsp;<span style="letter-spacing: 5px;"><%= get_allowed_chars(1, 1) %></span></li>
                    <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_36") %>&nbsp;<span style="letter-spacing: 5px;"><%= get_allowed_chars(1, 2) %></span></li>
                    <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_37") %>&nbsp;<span style="letter-spacing: 5px;"><%= get_allowed_chars(1, 3) %></span></li>
                    <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_38") %>&nbsp;<span style="letter-spacing: 5px;"><%= get_allowed_chars(1, 4) %></span></li>
                </ol>
            </li>
            <li><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_39") %>   space &nbsp;<span style="letter-spacing: 5px;"><%= get_allowed_chars(0, 5) %></span>
                <div style="float: right; padding-right: 20px; padding-top: 10px;">
                    <a style="color: black; text-decoration: underline;" href="javascript: void(0);"><%= fc_value_string(Session("ses_i_language"), "var_lost_pw_25") %></a>
                </div>
            </li>
        </ul>
    </div>
</div>
<span id="lost_pw_msg_b"></span>
    <div id="lost_pw_msg">
        <div id="lost_pw_msg_header"></div>
        <div id="lost_pw_msg_text"></div>
        <div id="lost_pw_msg_button">
            <input style="width: 100px;" type="button" value="<%= fc_value_string(Session("ses_i_language"), "var_lost_pw_30") %>" onclick="lost_pw_msg.close();" />
        </div>
    </div>